#ifndef COMMON_PUB_H
#define COMMON_PUB_H

#include <stdarg.h>

#define MAX_NAME_LEN 50
#define MAX_ID_LEN 20
#define MAX_COURSES 10
#define MAX_STUDENTS 100
#define MAX_COURSES_NUM 50

typedef enum {
    SUCCESS = 0,
    ERROR = -1,
    NOT_FOUND = -2,
    DUPLICATE = -3,
    FULL = -4
} ResultCode;

typedef enum {
    LOG_INFO,
    LOG_WARNING,
    LOG_ERROR
} LogLevel;

typedef enum {
    INPUT_FROM_FILE,
    INPUT_FROM_KEYBOARD
} InputMode;

void log_message(LogLevel level, const char* format, ...);

#endif
